﻿using System;

namespace DCS.CalculationClient.View
{
    public struct LogRecord
    {
        public string TaskName { get; set; }
        public uint PortionNumber { get; set; }
        public TaskPortionState State { get; set; }
        public string Message { get; set; }
        public bool IsRetransferred { get; set; }

        public LogRecord(string taskName, uint numberPortion, TaskPortionState downloading, string message, bool isRetransferred) : this()
        {
            TaskName = taskName;
            PortionNumber = numberPortion;
            State = downloading;
            Message = message;
            IsRetransferred = isRetransferred;
        }
    }
}